﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WAD.DAL
{
    public class DAOPushLog : DAO
    {
        public static int Add(int fc_article_id, object area1, object area2, object area3)
        {
            if (area1 == null || area1 == DBNull.Value) area1 = "";
            if (area2 == null || area2 == DBNull.Value) area2 = "";
            if (area3 == null || area3 == DBNull.Value) area3 = "";

            return ExecuteNonQuery(
                string.Format("insert into push_log(fc_article_id,area1,area2,area3,state,date)values({0},'{1}','{2}','{3}',0,getdate())", fc_article_id, area1, area2, area3)
                );
        }
    }
}